using System;
using System.Data;
using System.Collections.Generic;
using System.Collections;
using log4net;
using WEB.BLL.Entities;
using WEB.Exceptions;
namespace WEB.BLL.Services
{
	#region ExpertiseService

	/// <summary>
	/// DesktopService object for Ibatis mapped table 'Desktop'.
	/// </summary>
	public class ExpertiseService : IExpertiseService
	{
		private static readonly ILog log = LogManager.GetLogger(typeof(ExpertiseService).Name);
	  	private static volatile ExpertiseService _ExpertiseService = null;
        public static ExpertiseService GetInstance()
        {
            if (_ExpertiseService == null)
            {
                lock (typeof( ExpertiseService))
                {
                    if (_ExpertiseService == null) // double-check
                        _ExpertiseService = new ExpertiseService();
                }
            }
            return _ExpertiseService;
        }
		public ExpertiseService()
        {
            //
            // TODO: Add constructor logic here
            //
        }
        public IList<ExpertiseEntity> Find(ExpertiseEntity obj)
        {
            try
            {
                IList<ExpertiseEntity> resul = ExecuteQueryForList<ExpertiseEntity>("ExpertiseSearch", obj);
                return resul;
            }
            catch (Exception ex)
            {
                log.Debug(ex.Message);
                throw new DBException(ex.Message, ex);
            }
        }
    }
    #endregion
}
